package com.lanbu.system.mapper;


import com.lanbu.system.domain.mongo.MongoApps;
import com.lanbu.system.domain.mongo.MongoDatasets;
import com.lanbu.system.domain.mongo.MongoOpenApis;
import com.lanbu.system.domain.mongo.MongoOutlinks;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MongoOutlinksRepository   extends MongoRepository<MongoOutlinks, String> {

    MongoOutlinks findByShareId(String shareId);


    List<MongoOutlinks> findByTeamId(ObjectId teamId);


    void  deleteByTeamId(ObjectId teamId);
}
